package com.fy.market.strategy.model.entity.tree.valobj;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author fwq
 * @desc 决策树节点对象
 * @date 2025-09-26
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RuleTreeNodeVO {

    /**
     * 决策树ID
     */
    private String treeId;
    /**
     * 规则Key
     */
    private String ruleKey;
    /**
     * 规则描述
     */
    private String ruleDesc;
    /**
     * 规则比值
     */
    private String ruleValue;

    /**
     * 规则连线
     */
    // 这里存储的是ruleKey节点（也就是当前节点）下的所有子节点，List<RuleTreeNodeLineVO>里面每一个集合元素都是一个子节点
    // 并且每一个元素都是RuleTreeNodeLineVO对象，而RuleTreeNodeLineVO里面需要自己定义节点的头尾指向，具体代码在RuleTreeNodeLineVO中查看
    private List<RuleTreeNodeLineVO> treeNodeLineVOList;

}
